import { createRouterGuard } from './guard'
import { constantRouter } from './constantRouter'
import { createRouter, createWebHistory } from 'vue-router'

// 实例化路由
const router = createRouter({
  history: createWebHistory('/'),
  routes: constantRouter
})

createRouterGuard(router);

export default router